import Layout from '@/layout'
export default {
  // 用户访问的路径
  path: '/departments',
  component: Layout,
  redirect: '/departments',
  children: [
    {
      // 可以简单理解为默认路由：当访问department时加载layoput组件，然后layout有一个默认的二级路由来加载department组件
      path: 'departments',
      name: 'departments',
      component: () => import('@/views/departments/departments.vue'),
      // meta就是元信息，可以理解为路由自带的信息，里面包含了组件名称和图标
      meta: { title: '组织架构', icon: 'tree' }
    }
  ]
}
